<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ContratadaConsorcioEditDlg" widgetVar="ContratadaConsorcioEditDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.EditContratadaConsorcioTitle}">
            <h:form id="ContratadaConsorcioEditForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{contratadaConsorcioController.selected != null}">
                        <p:outputLabel value="#{bundle.EditContratadaConsorcioLabel_idContratadaConsorcio}" for="idContratadaConsorcio" />
                        <p:inputText id="idContratadaConsorcio" value="#{contratadaConsorcioController.selected.idContratadaConsorcio}" title="#{bundle.EditContratadaConsorcioTitle_idContratadaConsorcio}" required="true" requiredMessage="#{bundle.EditContratadaConsorcioRequiredMessage_idContratadaConsorcio}"/>
                        <p:outputLabel value="#{bundle.EditContratadaConsorcioLabel_txConsorcio}" for="txConsorcio" />
                        <p:inputText id="txConsorcio" value="#{contratadaConsorcioController.selected.txConsorcio}" title="#{bundle.EditContratadaConsorcioTitle_txConsorcio}" required="true" requiredMessage="#{bundle.EditContratadaConsorcioRequiredMessage_txConsorcio}"/>
                        <p:outputLabel value="#{bundle.EditContratadaConsorcioLabel_nuCnpjContratada}" for="nuCnpjContratada" />
                        <p:inputText id="nuCnpjContratada" value="#{contratadaConsorcioController.selected.nuCnpjContratada}" title="#{bundle.EditContratadaConsorcioTitle_nuCnpjContratada}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{contratadaConsorcioController.update}" value="#{bundle.Save}" update="display,:ContratadaConsorcioListForm:datalist,:growl" oncomplete="handleSubmit(args, 'ContratadaConsorcioEditDialog');"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="ContratadaConsorcioEditDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
